package com.openvas.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.openvas.commons.common.annotation.Excel;
import com.openvas.commons.common.core.domain.BaseEntity;

/**
 * 扫描仪对象 table_scanner
 * 
 * @author ruoyi
 * @date 2021-11-04
 */
public class TableScanner extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键id */
    private String scannerId;

    /** 扫描仪名称 */
    @Excel(name = "扫描仪名称")
    private String name;

    /** 备注 */
    @Excel(name = "备注")
    private String comment;

    /** 类型 */
    @Excel(name = "类型")
    private String type;

    /** 主机 */
    @Excel(name = "主机")
    private String host;

    /** 凭据 */
    @Excel(name = "凭据")
    private String credential;

    /** 端口 */
    @Excel(name = "端口")
    private Integer port;

    /** CA证书 */
    @Excel(name = "CA证书")
    private String caCertificate;

    /** 所属用户 */
    @Excel(name = "所属用户")
    private String userName;

    public void setScannerId(String scannerId) 
    {
        this.scannerId = scannerId;
    }

    public String getScannerId() 
    {
        return scannerId;
    }
    public void setName(String name) 
    {
        this.name = name;
    }

    public String getName() 
    {
        return name;
    }
    public void setComment(String comment) 
    {
        this.comment = comment;
    }

    public String getComment() 
    {
        return comment;
    }
    public void setType(String type) 
    {
        this.type = type;
    }

    public String getType() 
    {
        return type;
    }
    public void setHost(String host) 
    {
        this.host = host;
    }

    public String getHost() 
    {
        return host;
    }
    public void setCredential(String credential) 
    {
        this.credential = credential;
    }

    public String getCredential() 
    {
        return credential;
    }
    public void setPort(Integer port) 
    {
        this.port = port;
    }

    public Integer getPort() 
    {
        return port;
    }
    public void setCaCertificate(String caCertificate) 
    {
        this.caCertificate = caCertificate;
    }

    public String getCaCertificate() 
    {
        return caCertificate;
    }
    public void setUserName(String userName) 
    {
        this.userName = userName;
    }

    public String getUserName() 
    {
        return userName;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("scannerId", getScannerId())
            .append("name", getName())
            .append("comment", getComment())
            .append("type", getType())
            .append("host", getHost())
            .append("credential", getCredential())
            .append("port", getPort())
            .append("caCertificate", getCaCertificate())
            .append("userName", getUserName())
            .toString();
    }
}
